[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 circle()                Draw a Circle

 #include   <graphics.h>

 voidfar    circle(x,y,rad);
 int        x;
 int        y;
 int        rad;

    circle() draws a circle.  Its center is at coordinates ('x','y') and
    its radius is 'rad'.

    Returns:    Nothing.

   -------------------------------- Example ---------------------------------

    The following statements draw a circle on the screen.

           #include <graphics.h>

           main()
           {
               int gdriver = DETECT;
               int gmode;

               initgraph(&gdriver,&gmode,"");
               circle(320,100,100);
               getch();
               closegraph();
           }


See Also: arc() ellipse() getarccoords() getaspectratio() pieslice()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson